<?php
require_once( dirname( __FILE__ ) . "/../include/common.inc.php" );

$arcID = $id = ( isset( $id ) && is_numeric( $id ) ) ? $id : 0;
$row = $dsql->GetOne( "Select yptblink  From `#@__addonarticle135` f,`#@__archives` arc where arc.`id` = f.`aid` and f.`aid` = '$id'" );

$yptblink = $row[ 'yptblink' ];
	if ( $yptblink == "" ) {
  		echo '链接错误';
	} else
	{
  		header( "Location: $yptblink" );
	}
//骨灰盒

$arcID = $id = ( isset( $id ) && is_numeric( $id ) ) ? $id : 0;
$row = $dsql->GetOne( "Select sylink From `#@__addonarticle134` f,`#@__archives` arc where arc.`id` = f.`aid` and f.`aid` = '$id'" );

$sylink = $row[ 'sylink' ];
	if ( $sylink == "" ) {
  		echo '';
	} else
	{
  		header( "Location: $sylink" );
	}
//寿衣
$arcID = $id = ( isset( $id ) && is_numeric( $id ) ) ? $id : 0;
$row = $dsql->GetOne( "Select jslink From `#@__addonarticle136` f,`#@__archives` arc where arc.`id` = f.`aid` and f.`aid` = '$id'" );

$jslink = $row[ 'jslink' ];
	if ( $jslink == "" ) {
  		echo '';
	} else
	{
  		header( "Location: $jslink" );
	}
//祭祀用品
$arcID = $id = ( isset( $id ) && is_numeric( $id ) ) ? $id : 0;
$row = $dsql->GetOne( "Select ypmdlink From `#@__addonarticle137` f,`#@__archives` arc where arc.`id` = f.`aid` and f.`aid` = '$id'" );

$ypmdlink = $row[ 'ypmdlink' ];
	if ( $ypmdlink == "" ) {
  		echo '';
	} else
	{
  		header( "Location: $ypmdlink" );
	}
//墓地装饰
?>